#include <stdio.h>
#include <stdlib.h>
int lib(int num, int den)
{
    int ratio;  /* 10 times the compression ratio */

    if (den == 0) {
	    ratio = 0; /* no compression */
    } else if (den < 32) { 
	    ratio = 10*num/den;
    } else {
	    ratio = num/(den/10);
    }
    if (ratio < 0) {
	    ratio = -ratio;
    }
    ratio /= 10;
    return ratio;
}
int main(int argc, char *argv[]) {
    int num = atoi(argv[1]);
    int den = atoi(argv[2]);
    return lib(num, den);
}